package com.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_integral_detail")
@ApiModel(value="UserIntegralDetail对象", description="")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class UserIntegralDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "积分明细id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "积分来源或去向")
    @TableField("integral_content")
    private String integralContent;

    @ApiModelProperty(value = "0:失去1:获得")
    @TableField("integral_flag")
    private Boolean integralFlag;

    @ApiModelProperty(value = "本次积分数量")
    @TableField("integral_quantity")
    private Integer integralQuantity;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
